From 4050502c943375662ea14411873f5cadbfdaf0fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Wed, 30 Aug 2017 18:03:18 +0200 Subject: [PATCH] reduce set of default RGB spaces --- babl/babl-space.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/babl/babl-space.c b/babl/babl-space.c index 77d4d42..beecf3c 100644 --- a/babl/babl-space.c +++ b/babl/babl-space.c @@ -308,6 +308,15 @@ babl_space_class_init (void) 0.1550, 0.0700, babl_trc("1.8"), NULL, NULL); + babl_space_from_chromaticities ( + "WideGamutRGB", + 0.34567, 0.3585, /* D50 */ + 0.7350, 0.2650, + 0.1150, 0.8260, + 0.1570, 0.0180, + babl_trc("2.2"), NULL, NULL); + +#if 0 babl_space_from_chromaticities ( "Best", 0.34567, 0.3585, /* D50 */ @@ -363,14 +372,7 @@ babl_space_class_init (void) 0.2150, 0.7650, 0.1300, 0.0350, babl_trc("1.8"), NULL, NULL); - - babl_space_from_chromaticities ( - "WideGamutRGB", - 0.34567, 0.3585, /* D50 */ - 0.7350, 0.2650, - 0.1150, 0.8260, - 0.1570, 0.0180, - babl_trc("2.2"), NULL, NULL); +#endif } void babl_space_to_xyz (const Babl *space, const double *rgb, double *xyz) -- 2.30.2